<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
// Set some global property
$document = JFactory::getDocument();


define('COM_MEDIA_BASE',	JPATH_ROOT.'/images/products/');
define('COM_MEDIA_BASEURL', JURI::root().'/images/products/');

// import joomla controller library
jimport('joomla.application.component.controller');
 
// Get an instance of the controller
$controller = JController::getInstance('Products');
 
// Perform the Request task
$controller->execute(JRequest::getCmd('task'));
 
// Redirect if set by the controller
$controller->redirect();
